// src/data/armsList.ts
// @ts-ignore
import { Arms } from '../types/arms';

/** 武器列表数据 */
export const armsList: Arms[] = [
    {
        uuid: 'zhen_hong',
        name: '真红剑',
        attr: {
            attack: 1000,
            hui_xin: 0.9,
            hui_xiao: 2,
            xi_xue: 0.01,
            damageBonus: 0.15,
            speed: 20
        },
        synthesis: [
            { name: '真', number: 1 },
            { name: '红', number: 1 },
            { name: '剑', number: 1 }
        ],
        strengthen: [
            { name: '精铁', number: 200 }
        ],
        growthRate: {
            attack: 50,
            hui_xin: 0.01,
            hui_xiao: 0.1,
            xi_xue: 0.001,
            damageBonus: 0.03,
            speed: 0.01
        }
    },{
        uuid: 'zi_wei',
        name: '紫薇剑',
        attr: {
            attack: 120,
            hui_xin: 0.15,
            hui_xiao: 1.5,
            xi_xue: 0,
            damageBonus: 0,
            speed: 40
        },
        synthesis: [
            { name: '紫', number: 1 },
            { name: '薇', number: 1 },
            { name: '剑', number: 1 },
        ],
        strengthen: [
            { name: '精铁', number: 10 }
        ],
        growthRate: {
            attack: 10,
            hui_xin: 0.01,
            hui_xiao: 0.05,
            xi_xue: 0,
            damageBonus: 0.01,
            speed: 0.01
        }
    },{
        uuid: 'shen_sheng',
        name: '神圣剑',
        attr: {
            attack: 110,
            hui_xin: 0.15,
            hui_xiao: 1.5,
            xi_xue: 0,
            damageBonus: 0,
            speed: 40
        },
        synthesis: [
            { name: '神', number: 1 },
            { name: '圣', number: 1 },
            { name: '剑', number: 1 },
        ],
        strengthen: [
            { name: '精铁', number: 5 }
        ],
        growthRate: {
            attack: 10,
            hui_xin: 0.01,
            hui_xiao: 0.05,
            xi_xue: 0,
            damageBonus: 0.01,
            speed: 0.01
        }
    }
];

const armsMap = new Map<string, Arms>();

for(let i of armsList) {
    armsMap.set(i.uuid, i)
}

export default armsMap